package com.xzz.service;

import com.xzz.domain.CourseOrder;
import com.baomidou.mybatisplus.service.IService;
import com.xzz.dto.KillOrderParamDto;
import com.xzz.dto.OrderParamDto;
import com.xzz.dto.PayResultDto;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xzz
 * @since 2022-09-16
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String placeOrder(OrderParamDto dto);

    void saveOrderAndItem(CourseOrder courseOrder);

    CourseOrder selectByOrderNo(String orderNo);

    void updateCourseOrder(PayResultDto payResultDto);

    void closeOrder(String orderNo);

    String killPlaceOrder(KillOrderParamDto dto);
}
